/**********************************************************************************
Program:       chinaweathergadget

License:       GNU/GPL version 3

File:          Form_Main.Designer.1.cs

Description:   绘制GUI，包含Main函数

Author:        Guangyu Liu （lgy0417@gmail.com）

Environment:   .NET Framework v2.0 or later version

Usage/Example: README_chs.txt

Last Modified: 2010.08.30

***********************************************************************************/


using System;
using System.Drawing;
using System.Resources;
using System.Reflection;
using System.Windows.Forms;
using WeatherInfo;
using PrettifiedControls.PrettifiedButton;
using PrettifiedControls.PrettifiedComboBox;
using PrettifiedControls.PrettifiedTabControl;


namespace GUI
{	
	public partial class MainForm
	{
		private void InitializeComponents()
		{
			this.SuspendLayout();
		
			#region 实例化主要变量

			cc = new CurrentCondition();
			wf = new WeatherForecast();
			idDatabase = new ID_Database();
			cbu = new CitiesByUser();
			rm = new ResourceManager("ChinaWeatherGadget", Assembly.GetExecutingAssembly());
			
			tabControl = new TabControlNew();
			currentConditionPage = new TabPage();
			f3_Page = new TabPage();
			f7_Page = new TabPage();
			shzs_Page = new TabPage();

			Font yaHei_8 = new Font("微软雅黑", 8);
			Font yaHei_9 = new Font("微软雅黑", 9);
			Font yaHei_10 = new Font("微软雅黑", 10);
			
			#endregion
			
			#region Static Labels of Current Condition

			cityNameLabel = new Label();
			cityNameLabel.Text = "城市名称：";
			cityNameLabel.Font = yaHei_10;
			cityNameLabel.AutoSize = true;
			cityNameLabel.Left = 120;
			cityNameLabel.Top = 25;			
			currentConditionPage.Controls.Add(cityNameLabel);
		
			observationTimeLabel = new Label();
			observationTimeLabel.Text = "观测时间：";
			observationTimeLabel.Font = yaHei_10;
			observationTimeLabel.AutoSize = true;
			observationTimeLabel.Left = cityNameLabel.Left;
			observationTimeLabel.Top = 30 + cityNameLabel.Bottom;
			currentConditionPage.Controls.Add(observationTimeLabel);
					
			currentTempLabel = new Label();
			currentTempLabel.Text = "实时温度：";
			currentTempLabel.Font = yaHei_10;
			currentTempLabel.AutoSize = true;
			currentTempLabel.Left = cityNameLabel.Left;
			currentTempLabel.Top = 32 + observationTimeLabel.Bottom;	
			currentConditionPage.Controls.Add(currentTempLabel);
		
			windDirectionLabel = new Label();
			windDirectionLabel.Text = "实时风向：";
			windDirectionLabel.Font = yaHei_10;
			windDirectionLabel.AutoSize = true;
			windDirectionLabel.Left = cityNameLabel.Left;
			windDirectionLabel.Top = 30 + currentTempLabel.Bottom;
			currentConditionPage.Controls.Add(windDirectionLabel);
				
			windSpeedLabel = new Label();
			windSpeedLabel.Text = "实时风速：";
			windSpeedLabel.Font = yaHei_10;
			windSpeedLabel.AutoSize = true;
			windSpeedLabel.Left = cityNameLabel.Left;
			windSpeedLabel.Top = 30 + windDirectionLabel.Bottom;
			currentConditionPage.Controls.Add(windSpeedLabel);
							
			humidityLabel = new Label();
			humidityLabel.Text = "实时湿度：";
			humidityLabel.Font = yaHei_10;
			humidityLabel.AutoSize = true;
			humidityLabel.Left = cityNameLabel.Left;
			humidityLabel.Top = 30 + windSpeedLabel.Bottom;
			currentConditionPage.Controls.Add(humidityLabel);
				
			airPressureLabel = new Label();
			airPressureLabel.Text = "实时气压：";
			airPressureLabel.Font = yaHei_10;
			airPressureLabel.AutoSize = true;
			airPressureLabel.Left = cityNameLabel.Left;
			airPressureLabel.Top = 30 + humidityLabel.Bottom;	
			currentConditionPage.Controls.Add(airPressureLabel);
			
			#endregion
		
			#region data of current condition
		
			/* Drop-down-list of available cities */
			cityNameComboBox = new ComboBoxNew();
			cityNameComboBox.Width = 75;
			cityNameComboBox.Top = cityNameLabel.Top - 1;
			cityNameComboBox.Left = observationTimeLabel.Right + 56;
			cityNameComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
			cityNameComboBox.Items.AddRange(cbu.GetCityNameRange());
			cityNameComboBox.SelectedIndex = 0;
			currentConditionPage.Controls.Add(cityNameComboBox);	
			
			observationTimeValue = new Label();
			observationTimeValue.Font = yaHei_10;
			observationTimeValue.AutoSize = true;
			observationTimeValue.Left = cityNameComboBox.Left + 2;
			observationTimeValue.Top = observationTimeLabel.Top - 1;
			this.currentConditionPage.Controls.Add(observationTimeValue);
		
			currentTempValue = new Label();
			currentTempValue.Font = yaHei_10;
			currentTempValue.AutoSize = true;
			currentTempValue.Left = observationTimeValue.Left;
			currentTempValue.Top = currentTempLabel.Top;
			this.currentConditionPage.Controls.Add(currentTempValue);
		
			windDirectionValue = new Label();
			windDirectionValue.AutoSize = true;
			windDirectionValue.Left = observationTimeValue.Left;
			windDirectionValue.Top = windDirectionLabel.Top + 3;
			this.currentConditionPage.Controls.Add(windDirectionValue);
		
			windSpeedValue = new Label();
			windSpeedValue.Font = yaHei_10;
			windSpeedValue.AutoSize = true;
			windSpeedValue.Left = observationTimeValue.Left;
			windSpeedValue.Top = windSpeedLabel.Top;
			this.currentConditionPage.Controls.Add(windSpeedValue);
		
			humidityValue = new Label();
			humidityValue.Font = yaHei_10;
			humidityValue.AutoSize = true;
			humidityValue.Left = observationTimeValue.Left;
			humidityValue.Top = humidityLabel.Top;
			this.currentConditionPage.Controls.Add(humidityValue);
		
			airPressureValue = new Label();
			airPressureValue.Font = yaHei_10;
			airPressureValue.AutoSize = true;
			airPressureValue.Left = observationTimeValue.Left;
			airPressureValue.Top = airPressureLabel.Top;
			this.currentConditionPage.Controls.Add(airPressureValue);

			#endregion

			#region forecasts 1-4
			
			f3_TimeOfPublishing = new Label();
			f3_TimeOfPublishing.Font = new Font("微软雅黑", 12, FontStyle.Bold);
			f3_TimeOfPublishing.AutoSize = true;
			f3_TimeOfPublishing.Left = 140;
			f3_TimeOfPublishing.Top = 18;
			this.f3_Page.Controls.Add(f3_TimeOfPublishing);
			
			int f3_LineSpace = 8;
			
			/* Day 0 Night */
			f3_Day0_Night = new Label();
			f3_Day0_Night.Font = yaHei_8;
			f3_Day0_Night.AutoSize = true;
			f3_Day0_Night.Left = f3_TimeOfPublishing.Left + 48;
			f3_Day0_Night.Top = f3_TimeOfPublishing.Bottom + 6;
			this.f3_Page.Controls.Add(f3_Day0_Night);
			
			/* Day 1 */
			f3_Day1 = new Label();
			f3_Day1.AutoSize = true;
			f3_Day1.Font = yaHei_10;
			f3_Day1.Left = f3_TimeOfPublishing.Left - 80;
			f3_Day1.Top = f3_TimeOfPublishing.Bottom + 25;
			this.f3_Page.Controls.Add(f3_Day1);
			
			/* Day 1 Daytime */
			f3_Day1_DayTime = new Label();
			f3_Day1_DayTime.AutoSize = true;
			f3_Day1_DayTime.Font = yaHei_10;
			f3_Day1_DayTime.Left = f3_TimeOfPublishing.Left - 20;
			f3_Day1_DayTime.Top = f3_Day1.Bottom + f3_LineSpace;
			this.f3_Page.Controls.Add(f3_Day1_DayTime);
			
			f3_Day1_DayTime_Weather = new Label();
			f3_Day1_DayTime_Weather.AutoSize = true;
			f3_Day1_DayTime_Weather.Font = yaHei_10;
			f3_Day1_DayTime_Weather.Left = f3_Day1_DayTime.Left + 65;
			f3_Day1_DayTime_Weather.Top = f3_Day1_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day1_DayTime_Weather);
			
			f3_Day1_DayTime_Temp = new Label();
			f3_Day1_DayTime_Temp.AutoSize = true;
			f3_Day1_DayTime_Temp.Font = yaHei_10;
			f3_Day1_DayTime_Temp.Left = f3_Day1_DayTime_Weather.Left + 75;
			f3_Day1_DayTime_Temp.Top = f3_Day1_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day1_DayTime_Temp);
			
			f3_Day1_DayTime_WindDirection = new Label();
			f3_Day1_DayTime_WindDirection.AutoSize = true;
			f3_Day1_DayTime_WindDirection.Font = yaHei_10;
			f3_Day1_DayTime_WindDirection.Left = f3_Day1_DayTime_Temp.Left + 85;
			f3_Day1_DayTime_WindDirection.Top = f3_Day1_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day1_DayTime_WindDirection);
			
			f3_Day1_DayTime_WindStrength = new Label();
			f3_Day1_DayTime_WindStrength.AutoSize = true;
			f3_Day1_DayTime_WindStrength.Font = yaHei_10;
			f3_Day1_DayTime_WindStrength.Left = f3_Day1_DayTime_WindDirection.Left + 100;
			f3_Day1_DayTime_WindStrength.Top = f3_Day1_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day1_DayTime_WindStrength);
			
			/* Day 1 Night */
			f3_Day1_Night = new Label();
			f3_Day1_Night.AutoSize = true;
			f3_Day1_Night.Font = yaHei_10;
			f3_Day1_Night.Left = f3_Day1_DayTime.Left;
			f3_Day1_Night.Top = f3_Day1_DayTime.Bottom + f3_LineSpace;
			this.f3_Page.Controls.Add(f3_Day1_Night);
			
			f3_Day1_Night_Weather = new Label();
			f3_Day1_Night_Weather.AutoSize = true;
			f3_Day1_Night_Weather.Font = yaHei_10;
			f3_Day1_Night_Weather.Left = f3_Day1_DayTime_Weather.Left;
			f3_Day1_Night_Weather.Top = f3_Day1_Night.Top;
			this.f3_Page.Controls.Add(f3_Day1_Night_Weather);
			
			f3_Day1_Night_Temp = new Label();
			f3_Day1_Night_Temp.AutoSize = true;
			f3_Day1_Night_Temp.Font = yaHei_10;
			f3_Day1_Night_Temp.Left = f3_Day1_DayTime_Temp.Left;
			f3_Day1_Night_Temp.Top = f3_Day1_Night.Top;
			this.f3_Page.Controls.Add(f3_Day1_Night_Temp);
			
			f3_Day1_Night_WindDirection = new Label();
			f3_Day1_Night_WindDirection.AutoSize = true;
			f3_Day1_Night_WindDirection.Font = yaHei_10;
			f3_Day1_Night_WindDirection.Left = f3_Day1_DayTime_WindDirection.Left;
			f3_Day1_Night_WindDirection.Top = f3_Day1_Night.Top;
			this.f3_Page.Controls.Add(f3_Day1_Night_WindDirection);
			
			f3_Day1_Night_WindStrength = new Label();
			f3_Day1_Night_WindStrength.AutoSize = true;
			f3_Day1_Night_WindStrength.Font = yaHei_10;
			f3_Day1_Night_WindStrength.Left = f3_Day1_DayTime_WindStrength.Left;
			f3_Day1_Night_WindStrength.Top = f3_Day1_Night.Top;
			this.f3_Page.Controls.Add(f3_Day1_Night_WindStrength); 
			
			/* Day 2 */
			f3_Day2 = new Label();
			f3_Day2.AutoSize = true;
			f3_Day2.Font = yaHei_10;
			f3_Day2.Left = f3_Day1.Left;
			f3_Day2.Top = f3_Day1_Night.Bottom + 20;
			this.f3_Page.Controls.Add(f3_Day2);
			
			/* Day 2 Daytime */
			f3_Day2_DayTime = new Label();
			f3_Day2_DayTime.AutoSize = true;
			f3_Day2_DayTime.Font = yaHei_10;
			f3_Day2_DayTime.Left = f3_Day1_DayTime.Left;
			f3_Day2_DayTime.Top = f3_Day2.Bottom + f3_LineSpace;
			this.f3_Page.Controls.Add(f3_Day2_DayTime);
			
			f3_Day2_DayTime_Weather = new Label();
			f3_Day2_DayTime_Weather.AutoSize = true;
			f3_Day2_DayTime_Weather.Font = yaHei_10;
			f3_Day2_DayTime_Weather.Left = f3_Day1_DayTime_Weather.Left;
			f3_Day2_DayTime_Weather.Top = f3_Day2_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day2_DayTime_Weather);
			
			f3_Day2_DayTime_Temp = new Label();
			f3_Day2_DayTime_Temp.AutoSize = true;
			f3_Day2_DayTime_Temp.Font = yaHei_10;
			f3_Day2_DayTime_Temp.Left = f3_Day1_DayTime_Temp.Left;
			f3_Day2_DayTime_Temp.Top = f3_Day2_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day2_DayTime_Temp);
			
			f3_Day2_DayTime_WindDirection = new Label();
			f3_Day2_DayTime_WindDirection.AutoSize = true;
			f3_Day2_DayTime_WindDirection.Font = yaHei_10;
			f3_Day2_DayTime_WindDirection.Left = f3_Day1_DayTime_WindDirection.Left;
			f3_Day2_DayTime_WindDirection.Top = f3_Day2_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day2_DayTime_WindDirection);
			
			f3_Day2_DayTime_WindStrength = new Label();
			f3_Day2_DayTime_WindStrength.AutoSize = true;
			f3_Day2_DayTime_WindStrength.Font = yaHei_10;
			f3_Day2_DayTime_WindStrength.Left = f3_Day1_DayTime_WindStrength.Left;
			f3_Day2_DayTime_WindStrength.Top = f3_Day2_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day2_DayTime_WindStrength);
			
			/* Day 2 Night */
			f3_Day2_Night = new Label();
			f3_Day2_Night.AutoSize = true;
			f3_Day2_Night.Left = f3_Day1_DayTime.Left;
			f3_Day2_Night.Font = yaHei_10;
			f3_Day2_Night.Top = f3_Day2_DayTime.Bottom + f3_LineSpace;
			this.f3_Page.Controls.Add(f3_Day2_Night);
			
			f3_Day2_Night_Weather = new Label();
			f3_Day2_Night_Weather.AutoSize = true;
			f3_Day2_Night_Weather.Font = yaHei_10;
			f3_Day2_Night_Weather.Left = f3_Day1_DayTime_Weather.Left;
			f3_Day2_Night_Weather.Top = f3_Day2_Night.Top;
			this.f3_Page.Controls.Add(f3_Day2_Night_Weather);
			
			f3_Day2_Night_Temp = new Label();
			f3_Day2_Night_Temp.AutoSize = true;
			f3_Day2_Night_Temp.Font = yaHei_10;
			f3_Day2_Night_Temp.Left = f3_Day1_DayTime_Temp.Left;
			f3_Day2_Night_Temp.Top = f3_Day2_Night.Top;
			this.f3_Page.Controls.Add(f3_Day2_Night_Temp);
			
			f3_Day2_Night_WindDirection = new Label();
			f3_Day2_Night_WindDirection.AutoSize = true;
			f3_Day2_Night_WindDirection.Font = yaHei_10;
			f3_Day2_Night_WindDirection.Left = f3_Day1_DayTime_WindDirection.Left;
			f3_Day2_Night_WindDirection.Top = f3_Day2_Night.Top;
			this.f3_Page.Controls.Add(f3_Day2_Night_WindDirection);
			
			f3_Day2_Night_WindStrength = new Label();
			f3_Day2_Night_WindStrength.AutoSize = true;
			f3_Day2_Night_WindStrength.Font = yaHei_10;
			f3_Day2_Night_WindStrength.Left = f3_Day1_DayTime_WindStrength.Left;
			f3_Day2_Night_WindStrength.Top = f3_Day2_Night.Top;
			this.f3_Page.Controls.Add(f3_Day2_Night_WindStrength); 
			
			/* Day 3 */
			f3_Day3 = new Label();
			f3_Day3.AutoSize = true;
			f3_Day3.Font = yaHei_10;
			f3_Day3.Left = f3_Day1.Left;
			f3_Day3.Top = f3_Day2_Night.Bottom + 20;
			this.f3_Page.Controls.Add(f3_Day3);
			
			/* Day 3 Daytime */
			f3_Day3_DayTime = new Label();
			f3_Day3_DayTime.AutoSize = true;
			f3_Day3_DayTime.Font = yaHei_10;
			f3_Day3_DayTime.Left = f3_Day1_DayTime.Left;
			f3_Day3_DayTime.Top = f3_Day3.Top + f3_Day3.PreferredHeight + f3_LineSpace;
			this.f3_Page.Controls.Add(f3_Day3_DayTime);
			
			f3_Day3_DayTime_Weather = new Label();
			f3_Day3_DayTime_Weather.AutoSize = true;
			f3_Day3_DayTime_Weather.Font = yaHei_10;
			f3_Day3_DayTime_Weather.Left = f3_Day1_DayTime_Weather.Left;
			f3_Day3_DayTime_Weather.Top = f3_Day3_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day3_DayTime_Weather);
			
			f3_Day3_DayTime_Temp = new Label();
			f3_Day3_DayTime_Temp.AutoSize = true;
			f3_Day3_DayTime_Temp.Font = yaHei_10;
			f3_Day3_DayTime_Temp.Left = f3_Day1_DayTime_Temp.Left;
			f3_Day3_DayTime_Temp.Top = f3_Day3_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day3_DayTime_Temp);
			
			f3_Day3_DayTime_WindDirection = new Label();
			f3_Day3_DayTime_WindDirection.AutoSize = true;
			f3_Day3_DayTime_WindDirection.Font = yaHei_10;
			f3_Day3_DayTime_WindDirection.Left = f3_Day1_DayTime_WindDirection.Left;
			f3_Day3_DayTime_WindDirection.Top = f3_Day3_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day3_DayTime_WindDirection);
			
			f3_Day3_DayTime_WindStrength = new Label();
			f3_Day3_DayTime_WindStrength.AutoSize = true;
			f3_Day3_DayTime_WindStrength.Font = yaHei_10;
			f3_Day3_DayTime_WindStrength.Left = f3_Day1_DayTime_WindStrength.Left;
			f3_Day3_DayTime_WindStrength.Top = f3_Day3_DayTime.Top;
			this.f3_Page.Controls.Add(f3_Day3_DayTime_WindStrength);
			
			/* Day 3 Night */
			f3_Day3_Night = new Label();
			f3_Day3_Night.AutoSize = true;
			f3_Day3_Night.Font = yaHei_10;
			f3_Day3_Night.Left = f3_Day1_DayTime.Left;
			f3_Day3_Night.Top = f3_Day3_DayTime.Bottom + f3_LineSpace;
			this.f3_Page.Controls.Add(f3_Day3_Night);
			
			f3_Day3_Night_Weather = new Label();
			f3_Day3_Night_Weather.AutoSize = true;
			f3_Day3_Night_Weather.Font = yaHei_10;
			f3_Day3_Night_Weather.Left = f3_Day1_DayTime_Weather.Left;
			f3_Day3_Night_Weather.Top = f3_Day3_Night.Top;
			this.f3_Page.Controls.Add(f3_Day3_Night_Weather);
			
			f3_Day3_Night_Temp = new Label();
			f3_Day3_Night_Temp.AutoSize = true;
			f3_Day3_Night_Temp.Font = yaHei_10;
			f3_Day3_Night_Temp.Left = f3_Day1_DayTime_Temp.Left;
			f3_Day3_Night_Temp.Top = f3_Day3_Night.Top;
			this.f3_Page.Controls.Add(f3_Day3_Night_Temp);
			
			f3_Day3_Night_WindDirection = new Label();
			f3_Day3_Night_WindDirection.AutoSize = true;
			f3_Day3_Night_WindDirection.Font = yaHei_10;
			f3_Day3_Night_WindDirection.Left = f3_Day1_DayTime_WindDirection.Left;
			f3_Day3_Night_WindDirection.Top = f3_Day3_Night.Top;
			this.f3_Page.Controls.Add(f3_Day3_Night_WindDirection);
			
			f3_Day3_Night_WindStrength = new Label();
			f3_Day3_Night_WindStrength.AutoSize = true;
			f3_Day3_Night_WindStrength.Font = yaHei_10;
			f3_Day3_Night_WindStrength.Left = f3_Day1_DayTime_WindStrength.Left;
			f3_Day3_Night_WindStrength.Top = f3_Day3_Night.Top;
			this.f3_Page.Controls.Add(f3_Day3_Night_WindStrength); 
			
			#endregion
			
			#region forecasts 4-7
			
			f7_TimeOfPublishing = new Label();
			f7_TimeOfPublishing.Font = f3_TimeOfPublishing.Font;
			f7_TimeOfPublishing.AutoSize = true;
			f7_TimeOfPublishing.Left = 55;
			f7_TimeOfPublishing.Top = 18;
			this.f7_Page.Controls.Add(f7_TimeOfPublishing);
			
			int f7_LineSpace = 6;
			
			/* Day 4 */
			f7_Day4 = new Label();
			f7_Day4.AutoSize = true;
			f7_Day4.Font = yaHei_9;
			f7_Day4.Left = f7_TimeOfPublishing.Left - 3;
			f7_Day4.Top = f7_TimeOfPublishing.Bottom + 20;
			this.f7_Page.Controls.Add(f7_Day4);
			
			/* Day 4 Daytime */
			f7_Day4_DayTime = new Label();
			f7_Day4_DayTime.AutoSize = true;
			f7_Day4_DayTime.Font = yaHei_9;
			f7_Day4_DayTime.Left = f7_TimeOfPublishing.Left + 58;
			f7_Day4_DayTime.Top = f7_Day4.Top + f7_Day4.PreferredHeight + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day4_DayTime);
			
			f7_Day4_DayTime_Weather = new Label();
			f7_Day4_DayTime_Weather.AutoSize = true;
			f7_Day4_DayTime_Weather.Font = yaHei_9;
			f7_Day4_DayTime_Weather.Left = f7_Day4_DayTime.Left + 65;
			f7_Day4_DayTime_Weather.Top = f7_Day4_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day4_DayTime_Weather);
			
			f7_Day4_DayTime_Temp = new Label();
			f7_Day4_DayTime_Temp.AutoSize = true;
			f7_Day4_DayTime_Temp.Font = yaHei_9;
			f7_Day4_DayTime_Temp.Left = f7_Day4_DayTime_Weather.Left + 75;
			f7_Day4_DayTime_Temp.Top = f7_Day4_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day4_DayTime_Temp);
			
			f7_Day4_DayTime_WindDirection = new Label();
			f7_Day4_DayTime_WindDirection.AutoSize = true;
			f7_Day4_DayTime_WindDirection.Font = yaHei_9;
			f7_Day4_DayTime_WindDirection.Left = f7_Day4_DayTime_Temp.Left + 85;
			f7_Day4_DayTime_WindDirection.Top = f7_Day4_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day4_DayTime_WindDirection);
			
			f7_Day4_DayTime_WindStrength = new Label();
			f7_Day4_DayTime_WindStrength.AutoSize = true;
			f7_Day4_DayTime_WindStrength.Font = yaHei_9;
			f7_Day4_DayTime_WindStrength.Left = f7_Day4_DayTime_WindDirection.Left + 100;
			f7_Day4_DayTime_WindStrength.Top = f7_Day4_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day4_DayTime_WindStrength);
			
			/* Day 4 Night */
			f7_Day4_Night = new Label();
			f7_Day4_Night.AutoSize = true;
			f7_Day4_Night.Font = yaHei_9;
			f7_Day4_Night.Left = f7_Day4_DayTime.Left;
			f7_Day4_Night.Top = f7_Day4_DayTime.Bottom + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day4_Night);
			
			f7_Day4_Night_Weather = new Label();
			f7_Day4_Night_Weather.AutoSize = true;
			f7_Day4_Night_Weather.Font = yaHei_9;
			f7_Day4_Night_Weather.Left = f7_Day4_DayTime_Weather.Left;
			f7_Day4_Night_Weather.Top = f7_Day4_Night.Top;
			this.f7_Page.Controls.Add(f7_Day4_Night_Weather);
			
			f7_Day4_Night_Temp = new Label();
			f7_Day4_Night_Temp.AutoSize = true;
			f7_Day4_Night_Temp.Font = yaHei_9;
			f7_Day4_Night_Temp.Left = f7_Day4_DayTime_Temp.Left;
			f7_Day4_Night_Temp.Top = f7_Day4_Night.Top;
			this.f7_Page.Controls.Add(f7_Day4_Night_Temp);
			
			f7_Day4_Night_WindDirection = new Label();
			f7_Day4_Night_WindDirection.AutoSize = true;
			f7_Day4_Night_WindDirection.Font = yaHei_9;
			f7_Day4_Night_WindDirection.Left = f7_Day4_DayTime_WindDirection.Left;
			f7_Day4_Night_WindDirection.Top = f7_Day4_Night.Top;
			this.f7_Page.Controls.Add(f7_Day4_Night_WindDirection);
			
			f7_Day4_Night_WindStrength = new Label();
			f7_Day4_Night_WindStrength.AutoSize = true;
			f7_Day4_Night_WindStrength.Font = yaHei_9;
			f7_Day4_Night_WindStrength.Left = f7_Day4_DayTime_WindStrength.Left;
			f7_Day4_Night_WindStrength.Top = f7_Day4_Night.Top;
			this.f7_Page.Controls.Add(f7_Day4_Night_WindStrength);
			
			/* Day 5 */
			f7_Day5 = new Label();
			f7_Day5.AutoSize = true;
			f7_Day4.Font = yaHei_9;
			f7_Day5.Left = f7_Day4.Left;
			f7_Day5.Top = f7_Day4_Night.Bottom + 18;
			this.f7_Page.Controls.Add(f7_Day5);
			
			/* Day 5 Daytime */
			f7_Day5_DayTime = new Label();
			f7_Day5_DayTime.AutoSize = true;
			f7_Day5_DayTime.Font = yaHei_9;
			f7_Day5_DayTime.Left = f7_Day4_DayTime.Left;
			f7_Day5_DayTime.Top = f7_Day5.Bottom + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day5_DayTime);
			
			f7_Day5_DayTime_Weather = new Label();
			f7_Day5_DayTime_Weather.AutoSize = true;
			f7_Day5_DayTime_Weather.Font = yaHei_9;
			f7_Day5_DayTime_Weather.Left = f7_Day4_DayTime_Weather.Left;
			f7_Day5_DayTime_Weather.Top = f7_Day5_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day5_DayTime_Weather);
			
			f7_Day5_DayTime_Temp = new Label();
			f7_Day5_DayTime_Temp.AutoSize = true;
			f7_Day5_DayTime_Temp.Font = yaHei_9;
			f7_Day5_DayTime_Temp.Left = f7_Day4_DayTime_Temp.Left;
			f7_Day5_DayTime_Temp.Top = f7_Day5_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day5_DayTime_Temp);
			
			f7_Day5_DayTime_WindDirection = new Label();
			f7_Day5_DayTime_WindDirection.AutoSize = true;
			f7_Day5_DayTime_WindDirection.Font = yaHei_9;
			f7_Day5_DayTime_WindDirection.Left = f7_Day4_DayTime_WindDirection.Left;
			f7_Day5_DayTime_WindDirection.Top = f7_Day5_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day5_DayTime_WindDirection);
			
			f7_Day5_DayTime_WindStrength = new Label();
			f7_Day5_DayTime_WindStrength.AutoSize = true;
			f7_Day5_DayTime_WindStrength.Font = yaHei_9;
			f7_Day5_DayTime_WindStrength.Left = f7_Day4_DayTime_WindStrength.Left;
			f7_Day5_DayTime_WindStrength.Top = f7_Day5_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day5_DayTime_WindStrength);
			
			/* Day 5 Night */
			f7_Day5_Night = new Label();
			f7_Day5_Night.AutoSize = true;
			f7_Day5_Night.Font = yaHei_9;
			f7_Day5_Night.Left = f7_Day4_DayTime.Left;
			f7_Day5_Night.Top = f7_Day5_DayTime.Bottom + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day5_Night);
			
			f7_Day5_Night_Weather = new Label();
			f7_Day5_Night_Weather.AutoSize = true;
			f7_Day5_Night_Weather.Font = yaHei_9;
			f7_Day5_Night_Weather.Left = f7_Day4_DayTime_Weather.Left;
			f7_Day5_Night_Weather.Top = f7_Day5_Night.Top;
			this.f7_Page.Controls.Add(f7_Day5_Night_Weather);
			
			f7_Day5_Night_Temp = new Label();
			f7_Day5_Night_Temp.AutoSize = true;
			f7_Day5_Night_Temp.Font = yaHei_9;
			f7_Day5_Night_Temp.Left = f7_Day4_DayTime_Temp.Left;
			f7_Day5_Night_Temp.Top = f7_Day5_Night.Top;
			this.f7_Page.Controls.Add(f7_Day5_Night_Temp);
			
			f7_Day5_Night_WindDirection = new Label();
			f7_Day5_Night_WindDirection.AutoSize = true;
			f7_Day5_Night_WindDirection.Font = yaHei_9;
			f7_Day5_Night_WindDirection.Left = f7_Day4_DayTime_WindDirection.Left;
			f7_Day5_Night_WindDirection.Top = f7_Day5_Night.Top;
			this.f7_Page.Controls.Add(f7_Day5_Night_WindDirection);
			
			f7_Day5_Night_WindStrength = new Label();
			f7_Day5_Night_WindStrength.AutoSize = true;
			f7_Day5_Night_WindStrength.Font = yaHei_9;
			f7_Day5_Night_WindStrength.Left = f7_Day4_DayTime_WindStrength.Left;
			f7_Day5_Night_WindStrength.Top = f7_Day5_Night.Top;
			this.f7_Page.Controls.Add(f7_Day5_Night_WindStrength);
			
			/* Day 6 */
			f7_Day6 = new Label();
			f7_Day6.AutoSize = true;
			f7_Day6.Font = yaHei_9;
			f7_Day6.Left = f7_Day4.Left;
			f7_Day6.Top = f7_Day5_Night.Bottom + 18;
			this.f7_Page.Controls.Add(f7_Day6);
			
			/* Day 6 Daytime */
			f7_Day6_DayTime = new Label();
			f7_Day6_DayTime.AutoSize = true;
			f7_Day6_DayTime.Font = yaHei_9;
			f7_Day6_DayTime.Left = f7_Day4_DayTime.Left;
			f7_Day6_DayTime.Top = f7_Day6.Bottom + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day6_DayTime);
			
			f7_Day6_DayTime_Weather = new Label();
			f7_Day6_DayTime_Weather.AutoSize = true;
			f7_Day6_DayTime_Weather.Font = yaHei_9;
			f7_Day6_DayTime_Weather.Left = f7_Day4_DayTime_Weather.Left;
			f7_Day6_DayTime_Weather.Top = f7_Day6_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day6_DayTime_Weather);
			
			f7_Day6_DayTime_Temp = new Label();
			f7_Day6_DayTime_Temp.AutoSize = true;
			f7_Day6_DayTime_Temp.Font = yaHei_9;
			f7_Day6_DayTime_Temp.Left = f7_Day4_DayTime_Temp.Left;
			f7_Day6_DayTime_Temp.Top = f7_Day6_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day6_DayTime_Temp);
			
			f7_Day6_DayTime_WindDirection = new Label();
			f7_Day6_DayTime_WindDirection.AutoSize = true;
			f7_Day6_DayTime_WindDirection.Font = yaHei_9;
			f7_Day6_DayTime_WindDirection.Left = f7_Day4_DayTime_WindDirection.Left;
			f7_Day6_DayTime_WindDirection.Top = f7_Day6_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day6_DayTime_WindDirection);
			
			f7_Day6_DayTime_WindStrength = new Label();
			f7_Day6_DayTime_WindStrength.AutoSize = true;
			f7_Day6_DayTime_WindStrength.Font = yaHei_9;
			f7_Day6_DayTime_WindStrength.Left = f7_Day4_DayTime_WindStrength.Left;
			f7_Day6_DayTime_WindStrength.Top = f7_Day6_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day6_DayTime_WindStrength);
			
			/* Day 6 Night */
			f7_Day6_Night = new Label();
			f7_Day6_Night.AutoSize = true;
			f7_Day6_Night.Font = yaHei_9;
			f7_Day6_Night.Left = f7_Day4_DayTime.Left;
			f7_Day6_Night.Top = f7_Day6_DayTime.Bottom + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day6_Night);
			
			f7_Day6_Night_Weather = new Label();
			f7_Day6_Night_Weather.AutoSize = true;
			f7_Day6_Night_Weather.Font = yaHei_9;
			f7_Day6_Night_Weather.Left = f7_Day4_DayTime_Weather.Left;
			f7_Day6_Night_Weather.Top = f7_Day6_Night.Top;
			this.f7_Page.Controls.Add(f7_Day6_Night_Weather);
			
			f7_Day6_Night_Temp = new Label();
			f7_Day6_Night_Temp.AutoSize = true;
			f7_Day6_Night_Temp.Font = yaHei_9;
			f7_Day6_Night_Temp.Left = f7_Day4_DayTime_Temp.Left;
			f7_Day6_Night_Temp.Top = f7_Day6_Night.Top;
			this.f7_Page.Controls.Add(f7_Day6_Night_Temp);
			
			f7_Day6_Night_WindDirection = new Label();
			f7_Day6_Night_WindDirection.AutoSize = true;
			f7_Day6_Night_WindDirection.Font = yaHei_9;
			f7_Day6_Night_WindDirection.Left = f7_Day4_DayTime_WindDirection.Left;
			f7_Day6_Night_WindDirection.Top = f7_Day6_Night.Top;
			this.f7_Page.Controls.Add(f7_Day6_Night_WindDirection);
			
			f7_Day6_Night_WindStrength = new Label();
			f7_Day6_Night_WindStrength.AutoSize = true;
			f7_Day6_Night_WindStrength.Font = yaHei_9;
			f7_Day6_Night_WindStrength.Left = f7_Day4_DayTime_WindStrength.Left;
			f7_Day6_Night_WindStrength.Top = f7_Day6_Night.Top;
			this.f7_Page.Controls.Add(f7_Day6_Night_WindStrength);
			
			/* Day 7 */
			f7_Day7 = new Label();
			f7_Day7.AutoSize = true;
			f7_Day7.Font = yaHei_9;
			f7_Day7.Left = f7_Day4.Left;
			f7_Day7.Top = f7_Day6_Night.Bottom + 18;
			this.f7_Page.Controls.Add(f7_Day7);
			
			/* Day 7 Daytime */
			f7_Day7_DayTime = new Label();
			f7_Day7_DayTime.AutoSize = true;
			f7_Day7_DayTime.Font = yaHei_9;
			f7_Day7_DayTime.Left = f7_Day4_DayTime.Left;
			f7_Day7_DayTime.Top = f7_Day7.Bottom + f7_LineSpace;
			this.f7_Page.Controls.Add(f7_Day7_DayTime);
			
			f7_Day7_DayTime_Weather = new Label();
			f7_Day7_DayTime_Weather.AutoSize = true;
			f7_Day7_DayTime_Weather.Font = yaHei_9;
			f7_Day7_DayTime_Weather.Left = f7_Day4_DayTime_Weather.Left;
			f7_Day7_DayTime_Weather.Top = f7_Day7_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day7_DayTime_Weather);
			
			f7_Day7_DayTime_Temp = new Label();
			f7_Day7_DayTime_Temp.AutoSize = true;
			f7_Day7_DayTime_Temp.Font = yaHei_9;
			f7_Day7_DayTime_Temp.Left = f7_Day4_DayTime_Temp.Left;
			f7_Day7_DayTime_Temp.Top = f7_Day7_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day7_DayTime_Temp);
			
			f7_Day7_DayTime_WindDirection = new Label();
			f7_Day7_DayTime_WindDirection.AutoSize = true;
			f7_Day7_DayTime_WindDirection.Font = yaHei_9;
			f7_Day7_DayTime_WindDirection.Left = f7_Day4_DayTime_WindDirection.Left;
			f7_Day7_DayTime_WindDirection.Top = f7_Day7_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day7_DayTime_WindDirection);
			
			f7_Day7_DayTime_WindStrength = new Label();
			f7_Day7_DayTime_WindStrength.AutoSize = true;
			f7_Day7_DayTime_WindStrength.Font = yaHei_9;
			f7_Day7_DayTime_WindStrength.Left = f7_Day4_DayTime_WindStrength.Left;
			f7_Day7_DayTime_WindStrength.Top = f7_Day7_DayTime.Top;
			this.f7_Page.Controls.Add(f7_Day7_DayTime_WindStrength);
			
			#endregion
		
			#region 生活指数
			
			toolTip1 = new ToolTip();
			int shzs_Page_LineSpace = 22;
		
			shzs_TimeOfPublishing = new Label();
			shzs_TimeOfPublishing.Font = f3_TimeOfPublishing.Font;
			shzs_TimeOfPublishing.AutoSize = true;
			shzs_TimeOfPublishing.Left = 125;
			shzs_TimeOfPublishing.Top = 20;
			this.shzs_Page.Controls.Add(shzs_TimeOfPublishing);
			
			shzs_UsageTip = new Label();
			shzs_UsageTip.Font = yaHei_8;
			shzs_UsageTip.AutoSize = true;
			shzs_UsageTip.Left = shzs_TimeOfPublishing.Left + 30;
			shzs_UsageTip.Top = shzs_TimeOfPublishing.Bottom + 5;
			this.shzs_Page.Controls.Add(shzs_UsageTip);
			
			/* 紫外线指数 */
			shzs_ZiWaiXian = new Label();
			shzs_ZiWaiXian.AutoSize = true;
			shzs_ZiWaiXian.Font = yaHei_10;
			shzs_ZiWaiXian.Left = 56;
			shzs_ZiWaiXian.Top = f7_TimeOfPublishing.Bottom + 40;
			this.shzs_Page.Controls.Add(shzs_ZiWaiXian);
			
			/* 空气污染扩散条件指数 */
			shzs_WuRanKuoSan = new Label();
			shzs_WuRanKuoSan.AutoSize = true;
			shzs_WuRanKuoSan.Font = yaHei_10;
			shzs_WuRanKuoSan.Left = 224;
			shzs_WuRanKuoSan.Top = shzs_ZiWaiXian.Top;
			this.shzs_Page.Controls.Add(shzs_WuRanKuoSan);
					
			/* 穿衣指数 */
			shzs_ChuanYi = new Label();
			shzs_ChuanYi.AutoSize = true;
			shzs_ChuanYi.Font = yaHei_10;
			shzs_ChuanYi.Left = 410;
			shzs_ChuanYi.Top = shzs_ZiWaiXian.Top;
			this.shzs_Page.Controls.Add(shzs_ChuanYi);
		
			/* 晨练指数 */
			shzs_ChenLian = new Label();
			shzs_ChenLian.AutoSize = true;
			shzs_ChenLian.Font = yaHei_10;
			shzs_ChenLian.Left = shzs_ZiWaiXian.Left;
			shzs_ChenLian.Top = shzs_ZiWaiXian.Bottom + shzs_Page_LineSpace;
			this.shzs_Page.Controls.Add(shzs_ChenLian);		
			
			/* 舒适度指数 */
			shzs_ShuShiDu = new Label();
			shzs_ShuShiDu.AutoSize = true;
			shzs_ShuShiDu.Font = yaHei_10;
			shzs_ShuShiDu.Left = shzs_WuRanKuoSan.Left;
			shzs_ShuShiDu.Top = shzs_ChenLian.Top;
			this.shzs_Page.Controls.Add(shzs_ShuShiDu);
		
			/* 感冒指数 */
			shzs_GanMao = new Label();
			shzs_GanMao.AutoSize = true;
			shzs_GanMao.Font = yaHei_10;
			shzs_GanMao.Left = shzs_ChuanYi.Left;
			shzs_GanMao.Top = shzs_ChenLian.Top;
			this.shzs_Page.Controls.Add(shzs_GanMao);
			
			/* 交通指数 */
			shzs_JiaoTong = new Label();
			shzs_JiaoTong.AutoSize = true;
			shzs_JiaoTong.Font = yaHei_10;
			shzs_JiaoTong.Left = shzs_ZiWaiXian.Left;
			shzs_JiaoTong.Top = shzs_ChenLian.Bottom + shzs_Page_LineSpace;
			this.shzs_Page.Controls.Add(shzs_JiaoTong);
			
			/* 洗车指数 */
			shzs_XiChe = new Label();
			shzs_XiChe.AutoSize = true;
			shzs_XiChe.Font = yaHei_10;
			shzs_XiChe.Left = shzs_WuRanKuoSan.Left;
			shzs_XiChe.Top = shzs_JiaoTong.Top;
			this.shzs_Page.Controls.Add(shzs_XiChe);
			
			/* 晾晒指数 */
			shzs_LiangShai = new Label();
			shzs_LiangShai.AutoSize = true;
			shzs_LiangShai.Font = yaHei_10;
			shzs_LiangShai.Left = shzs_ChuanYi.Left;
			shzs_LiangShai.Top = shzs_JiaoTong.Top;
			this.shzs_Page.Controls.Add(shzs_LiangShai);
			
			/* 运动指数 */
			shzs_YunDong = new Label();
			shzs_YunDong.AutoSize = true;
			shzs_YunDong.Font = yaHei_10;
			shzs_YunDong.Left = shzs_ZiWaiXian.Left;
			shzs_YunDong.Top = shzs_JiaoTong.Bottom + shzs_Page_LineSpace;
			this.shzs_Page.Controls.Add(shzs_YunDong);
			
			/* 旅游指数 */
			shzs_LvYou = new Label();
			shzs_LvYou.AutoSize = true;
			shzs_LvYou.Font = yaHei_10;
			shzs_LvYou.Left = shzs_WuRanKuoSan.Left;
			shzs_LvYou.Top = shzs_YunDong.Top;
			this.shzs_Page.Controls.Add(shzs_LvYou);
			
			/* 化妆指数 */
			shzs_HuaZhuang = new Label();
			shzs_HuaZhuang.AutoSize = true;
			shzs_HuaZhuang.Font = yaHei_10;
			shzs_HuaZhuang.Left = shzs_ChuanYi.Left;
			shzs_HuaZhuang.Top = shzs_YunDong.Top;
			this.shzs_Page.Controls.Add(shzs_HuaZhuang);
			
			/* 钓鱼指数 */
			shzs_DiaoYu = new Label();
			shzs_DiaoYu.AutoSize = true;
			shzs_DiaoYu.Font = yaHei_10;
			shzs_DiaoYu.Left = shzs_ZiWaiXian.Left;
			shzs_DiaoYu.Top = shzs_YunDong.Bottom + shzs_Page_LineSpace;
			this.shzs_Page.Controls.Add(shzs_DiaoYu);

			/* 约会指数 */
			shzs_YueHui = new Label();
			shzs_YueHui.AutoSize = true;
			shzs_YueHui.Font = yaHei_10;
			shzs_YueHui.Left = shzs_WuRanKuoSan.Left;
			shzs_YueHui.Top = shzs_DiaoYu.Top;
			this.shzs_Page.Controls.Add(shzs_YueHui);
			
			/* 雨伞指数 */
			shzs_YuSan = new Label();
			shzs_YuSan.AutoSize = true;
			shzs_YuSan.Font = yaHei_10;
			shzs_YuSan.Left = shzs_ChuanYi.Left;
			shzs_YuSan.Top = shzs_DiaoYu.Top;
			this.shzs_Page.Controls.Add(shzs_YuSan);
			
			/* 路况指数 */
			shzs_LuKuang = new Label();
			shzs_LuKuang.AutoSize = true;
			shzs_LuKuang.Font = yaHei_10;
			shzs_LuKuang.Left = shzs_ZiWaiXian.Left;
			shzs_LuKuang.Top = shzs_DiaoYu.Bottom + shzs_Page_LineSpace;
			this.shzs_Page.Controls.Add(shzs_LuKuang);
			
			/* 划船指数 */
			shzs_HuaChuan = new Label();
			shzs_HuaChuan.AutoSize = true;
			shzs_HuaChuan.Font = yaHei_10;
			shzs_HuaChuan.Left = shzs_WuRanKuoSan.Left;
			shzs_HuaChuan.Top = shzs_LuKuang.Top;
			this.shzs_Page.Controls.Add(shzs_HuaChuan);
			
			/* 夜生活指数 */
			shzs_YeShengHuo = new Label();
			shzs_YeShengHuo.AutoSize = true;
			shzs_YeShengHuo.Font = yaHei_10;
			shzs_YeShengHuo.Left = shzs_ChuanYi.Left;
			shzs_YeShengHuo.Top = shzs_LuKuang.Top;
			this.shzs_Page.Controls.Add(shzs_YeShengHuo);

			/* 逛街指数 */
			shzs_GuangJie = new Label();
			shzs_GuangJie.AutoSize = true;
			shzs_GuangJie.Font = yaHei_10;
			shzs_GuangJie.Left = 140;
			shzs_GuangJie.Top = shzs_LuKuang.Bottom + shzs_Page_LineSpace;
			this.shzs_Page.Controls.Add(shzs_GuangJie);
			
			/* 美发指数 */
			shzs_MeiFa = new Label();
			shzs_MeiFa.AutoSize = true;
			shzs_MeiFa.Font = yaHei_10;
			shzs_MeiFa.Left = 320;
			shzs_MeiFa.Top = shzs_GuangJie.Top;
			this.shzs_Page.Controls.Add(shzs_MeiFa);
			
			#endregion
		
			#region System Tray

			sysTrayMenu = new ContextMenuStrip();
			sysTrayMenu.ShowImageMargin = true;
			
			menuItemOpen = new ToolStripMenuItem();
			menuItemOpen.Text = "隐藏";
			sysTrayMenu.Items.Add(menuItemOpen);
			
			menuItemUpdate = new ToolStripMenuItem();
			menuItemUpdate.Text = "刷新实时天气";
			sysTrayMenu.Items.Add(menuItemUpdate);
			
			menuSep = new ToolStripSeparator();
			sysTrayMenu.Items.Add(menuSep);
			
			menuItemAbout = new ToolStripMenuItem();
			menuItemAbout.Text = "关于";
			sysTrayMenu.Items.Add(menuItemAbout);
			
			menuItemExit = new ToolStripMenuItem();
			menuItemExit.Text = "退出";
			sysTrayMenu.Items.Add(menuItemExit);
			
			sysTray = new NotifyIcon();
			sysTray.Icon = (Icon)rm.GetObject("16x16_icon");
			sysTray.ContextMenuStrip = sysTrayMenu;
			sysTray.Visible = true;
			
			#endregion

			#region timer
			/* Automatically update real-time weather every 20 minutes */
			ccTimer.Interval = 1200000;
			ccTimer.Start();
			wfTimer.Interval = 10800000;
			wfTimer.Start();
			#endregion
			
			#region tabControl & tabPage
			tabControl.BackColor = Color.FromArgb(224,234,247);
			tabControl.Location = new Point(27, 10);
			tabControl.Size = new Size(585, f7_Day7_DayTime_WindStrength.Bottom + 50 > shzs_GuangJie.Bottom + 50 
											? f7_Day7_DayTime_WindStrength.Bottom + 50 : shzs_GuangJie.Bottom + 50);
			currentConditionPage.Text = "实时天气";
			f3_Page.Text = "1-3天预报";
			f7_Page.Text = "4-7天预报";
			shzs_Page.Text = "生活指数";
			
			tabControl.Controls.Add(currentConditionPage);
			tabControl.Controls.Add(f3_Page);
			tabControl.Controls.Add(f7_Page);
			tabControl.Controls.Add(shzs_Page);
			this.Controls.Add(tabControl);
			#endregion
			
			#region button
			
			/* Press button to quit */
			exitButton = new ButtonNew();
			exitButton.Font = new Font("宋体", 12);
			exitButton.Text = "退出";
			exitButton.Width = 70;
			exitButton.Height = 25;
			exitButton.Location = new Point(tabControl.Right - exitButton.Width, tabControl.Bottom + 20);
			exitButton.Image = (Image)rm.GetObject("close_png");
			exitButton.ImageWidth = 17;
			exitButton.TextImageRelation = TextImageRelation.ImageBeforeText;
			this.Controls.Add(exitButton);
			
			/* Press button to update */
			refresh = new ButtonNew();
			refresh.Font = exitButton.Font;
			refresh.Text = "刷新";
			refresh.Location = new Point(exitButton.Left - 20 - exitButton.Width, exitButton.Top);
			refresh.Width = 70;
			refresh.Height = 25;
			refresh.Image = (Image)rm.GetObject("refresh_png");
			refresh.ImageWidth = 17;
			refresh.TextImageRelation = TextImageRelation.ImageBeforeText;
			this.Controls.Add(refresh);
			
			/* Press button to edit city name list */
			editCityListButton = new ButtonNew();
			editCityListButton.Font = new Font("宋体", 9);
			editCityListButton.Text = "编辑";
			editCityListButton.Width = 55;
			editCityListButton.Height = 22;
			editCityListButton.Image = (Image)rm.GetObject("edit_png");
			editCityListButton.ImageWidth = 17;
			editCityListButton.TextImageRelation = TextImageRelation.ImageBeforeText;
			editCityListButton.Top = cityNameComboBox.Top - 1;
			editCityListButton.Left = cityNameComboBox.Right + 20;
			this.currentConditionPage.Controls.Add(editCityListButton);
			
			#endregion
		
			#region Main Form 
			this.Icon = (Icon)rm.GetObject("16x16_icon");
			this.StartPosition = FormStartPosition.CenterScreen;
			this.MaximizeBox = false;
			this.Opacity = 0.96;
			this.BackColor = Color.FromArgb(224,234,247);
			this.ClientSize = new Size(2 * this.tabControl.Location.X + tabControl.Width, refresh.Top + refresh.Height + 20);
			this.FormBorderStyle = FormBorderStyle.FixedSingle;
			this.Text = "中国城市即时天气 " + version;
			this.ResumeLayout();
			#endregion

			#region Events Declaration
			this.Load += new System.EventHandler(this.UpdateGlobally);
			this.SizeChanged += new System.EventHandler(this.Form_SizeChanged);
			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form_Closing);
			cityNameComboBox.SelectionChangeCommitted += new System.EventHandler(this.UpdateGlobally);
			refresh.Click += new System.EventHandler(this.UpdateGlobally);
			exitButton.Click += new System.EventHandler(this.Form_Close);
			editCityListButton.Click += new System.EventHandler(this.EditCities);
			menuItemOpen.Click += new System.EventHandler(this.Form_Recover);
			menuItemUpdate.Click += new System.EventHandler(this.UpdateCurrentCondition);
			menuItemAbout.Click += new System.EventHandler(this.About);
			menuItemExit.Click += new System.EventHandler(this.Form_Close);
			sysTray.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.sysTray_DoubleClick);
			ccTimer.Tick += new System.EventHandler(this.UpdateCurrentCondition);
			wfTimer.Tick += new System.EventHandler(this.UpdateGlobally);
			#endregion
		}
	}
}
